package com.edu.hre.struts.form.admin;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

public class LocationUpdateForm extends ActionForm {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1963599047193966305L;
	private Integer id;
    private String name = "";
    private String province = "";
    private String district = "";
    private String address = "";
    private String phone = "";
    private String fax = "";
    private String notes = "";
    private Date dateCreated;
    private Date lastModified;
    
    private List<LabelValueBean> allProvinces = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allDistricts = new ArrayList<LabelValueBean>();
    
    private boolean isAddNew = true;
    private String message = "";
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public Date getLastModified() {
		return lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}

	public List<LabelValueBean> getAllProvinces() {
		return allProvinces;
	}

	public void setAllProvinces(List<LabelValueBean> allProvinces) {
		this.allProvinces = allProvinces;
	}

	public List<LabelValueBean> getAllDistricts() {
		return allDistricts;
	}

	public void setAllDistricts(List<LabelValueBean> allDistricts) {
		this.allDistricts = allDistricts;
	}

	public LocationUpdateForm() {
		
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
